<%@ page isELIgnored ="false" pageEncoding="UTF-8" %> 
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
		<title>Tabla filtrada</title>
		<link rel="stylesheet" type="text/css" href="style.css" />
	</head>
	<body>
		
		<div align="center" id="robotsDelSistema">
		<p>Robots del sistema</p>			
		
			<table>
				<tr>					
					<th>Nombre</th>	
					<th>Poder total</th>
					<th>Nivel deterioro</th>
				</tr>
				<c:forEach items="${sessionScope.vistaPrincipal.robotsDelSistemaFiltrados}" var="robot" varStatus="status">
					<tr>					
						<td>${robot.nombre}</td>
						<td>${robot.poderTotal}</td>
				    	<td>${robot.danio}</td>				    	
				    	<td>
			   			<form method="post" action="comprar">
							<input type="hidden" name="robotId" value="${robot.id}" />
							<input type="submit" class=button value="comprar"/>
						</form>
						</td>
				    </tr>
				</c:forEach>
			</table>
		</div>
	
	</body>
</html>